package com.ruoyi.whzj.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 会员级别对象 wh_memberlevel
 * 
 * @author ruoyi
 * @date 2020-10-16
 */
public class WhMemberlevel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 会员级别名称 */
    @Excel(name = "会员级别名称")
    private String levelName;

    /** 所需经验 */
    @Excel(name = "所需经验")
    private Integer needExperience;

    /** 免费领取时间间隔（小时） */
    @Excel(name = "免费领取时间间隔", readConverterExp = "小时")
    private BigDecimal timeInterval;

    /** 置顶优惠（%） */
    @Excel(name = "置顶优惠", readConverterExp = "%=")
    private BigDecimal topDiscount;

    /** 任务速度 */
    @Excel(name = "任务速度")
    private Integer taskSpeed;

    /** 作品刷新间隔（分钟） */
    @Excel(name = "作品刷新间隔", readConverterExp = "分=钟")
    private Integer refreshInterval;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setLevelName(String levelName) 
    {
        this.levelName = levelName;
    }

    public String getLevelName() 
    {
        return levelName;
    }
    public void setNeedExperience(Integer needExperience) 
    {
        this.needExperience = needExperience;
    }

    public Integer getNeedExperience() 
    {
        return needExperience;
    }


    public void setTaskSpeed(Integer taskSpeed) 
    {
        this.taskSpeed = taskSpeed;
    }

    public Integer getTaskSpeed() 
    {
        return taskSpeed;
    }
    public void setRefreshInterval(Integer refreshInterval) 
    {
        this.refreshInterval = refreshInterval;
    }

    public Integer getRefreshInterval() 
    {
        return refreshInterval;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("levelName", getLevelName())
            .append("needExperience", getNeedExperience())
            .append("timeInterval", getTimeInterval())
            .append("topDiscount", getTopDiscount())
            .append("taskSpeed", getTaskSpeed())
            .append("refreshInterval", getRefreshInterval())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }


    public BigDecimal getTimeInterval() {
        return timeInterval;
    }

    public void setTimeInterval(BigDecimal timeInterval) {
        this.timeInterval = timeInterval;
    }

    public BigDecimal getTopDiscount() {
        return topDiscount;
    }

    public void setTopDiscount(BigDecimal topDiscount) {
        this.topDiscount = topDiscount;
    }
}
